package main

import (
	"fmt"
	"time"
)

func main() {
	defer func() {
		if err := recover(); err != nil {
			fmt.Println("recover:", err)
		}
	}()
	//panic("ttt")
	go goPanic()
	time.Sleep(1 * time.Second)
}

func goPanic() {
	panic("test1")
}
